package com.felight.ems.serialize;
import com.felight.ems.hr.employee;
import java.io.*;

public class Serialization{
	public static void main(String[] args){
		Employee e = new Employee();
		e.name = "Ankitha";
		e.addr = "Felight,Bangalore";
		e.SSN = 123;
		e.gender = 'F';
		e.salary = 20000.00;
		try{
			FileOutputStream fileout = new FileOutputStream("employee.ser");
			objectOutputStream out = new ObjectOutputStream(fileout);
			out.writeObject(e);
			out.close();
			fileout.close();
		}catch(IOException i){
			i.printStackTrace();
		}
	}
}